//
//  CGHBaseViewController.m
//  MagicBox
//
//  Created by dllo on 16/8/15.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CGHBaseViewController.h"

@interface CGHBaseViewController ()<EMContactManagerDelegate>

@end

@implementation CGHBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationController.navigationBar.translucent = NO;
    
     [[EMClient sharedClient].contactManager addDelegate:self  delegateQueue:nil];
    
}



-(void)didReceiveFriendInvitationFromUsername:(NSString *)aUsername
message:(NSString *)aMessage{
  
    
    
    
    [[NSUserDefaults standardUserDefaults] setObject:aUsername forKey:@"aUsername"];
    [[NSUserDefaults standardUserDefaults] setObject:aMessage forKey:@"aMessage"];
    

}







- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
